import request from '@/utils/request';
export const getQuestionSort = query => {
	return request({
		url: '/admin/question/getQuestionSort',
		method: 'get',
		params: query
	});
};

export const getType = query => {
	return request({
		url: '/admin/chapter/getType',
		method: 'get',
		params: query
	});
};

export const getSort = query => {
	return request({
		url: '/admin/questionType/getQuestionSort',
		method: 'get',
		params: query
	});
};

export const getFormAnother = query => {
	return request({
		url: '/admin/chapter/importFormAnother',
		method: 'get',
		params: query
	});
};

export const getchapter = query => {
	return request({
		url: '/admin/chapter/pageChapter',
		method: 'get',
		params: query
	});
};

export const getQuestionVideo = query => {
	return request({
		url: '/admin/questionVideo/getQuestionVideo',
		method: 'get',
		params: query
	});
};

export const getaddChapter = query => {
	return request({
		url: '/admin/chapter/addChapter',
		method: 'get',
		params: query
	});
};

export const getpageChapter = query => {
	return request({
		url: '/admin/chapter/pageChapter',
		method: 'get',
		params: query
	});
};

export const getChapterQuestions = query => {
	return request({
		url: '/admin/chapter/getChapterQuestions',
		method: 'get',
		params: query
	});
};

export const replaceQuestions = query => {
	return request({
		url: '/admin/chapter/replaceQuestions',
		method: 'post',
		params: query
	});
};

export const getmoveOne = query => {
	return request({
		url: '/admin/chapter/moveOne',
		method: 'get',
		params: query
	});
};

export const getProvince = query => {
	return request({
		url: '/admin/area/getProvince',
		method: 'get',
		params: query
	});
};

export const getCities = query => {
	return request({
		url: '/admin/area/getCities',
		method: 'get',
		params: query
	});
};
